package com.ruoyi.stock.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * banner图片对象 stock_banner
 * 
 * @author xxb
 * @date 2024-12-30
 */
@ApiModel()
public class StockBanner extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 图片 */
    @ApiModelProperty(value = "图片url")
    @Excel(name = "图片")
    private String img;

    /** 是否展示 */
    @Excel(name = "是否展示")
    @ApiModelProperty(value = "是否展示")
    private Long isShow;

    /** 跳转链接 */
    private String url;

    /** 排序 */
    @ApiModelProperty(value = "排序")
    private Long bannerOrder;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setIsShow(Long isShow) 
    {
        this.isShow = isShow;
    }

    public Long getIsShow() 
    {
        return isShow;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setBannerOrder(Long bannerOrder) 
    {
        this.bannerOrder = bannerOrder;
    }

    public Long getBannerOrder() 
    {
        return bannerOrder;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("img", getImg())
            .append("isShow", getIsShow())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("url", getUrl())
            .append("bannerOrder", getBannerOrder())
            .toString();
    }
}
